@{
    Layout = null;
}

@using MvcDemo09.Models
@model Student

<table>
    @if (Model == null)
    {
        <tr>
            <td>姓名:<input type="text" name="name" /></td>
        </tr>
        <tr>
            <td>备注:<input type="text" name="remarks" /></td>
        </tr>
    }
    else
    {
        <tr>
            <td>姓名:<input type="text" name="name" value="@Model.Name"/></td>
        </tr>
        <tr>
            <td>备注:<input type="text" name="remarks" value="@Model.Remarks" /></td>
        </tr>
        <tr>
            <td>Id:<input type="text" name="id" value="@Model.Id" /></td>
        </tr>
    }
    <tr>
        <td>
            <button onclick="btnsave()">保存</button>
            <button onclick="btnback()">返回</button>
        </td>
    </tr>
</table>

<script scr="~/lib/jquery/dist/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="~/js/base.js"></script>